<?php

use think\migration\Seeder;

class ShopMenuSeeder extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public $datas = [['id' => '13',
        'pid' => '0',
        'title' => '商城管理',
        'node' => '',
        'icon' => '',
        'url' => '#',
        'params' => '',
        'target' => '_self',
        'sort' => '400',
        'status' => '1',
    ], ['id' => '14',
        'pid' => '48',
        'title' => '商品信息管理',
        'node' => '',
        'icon' => 'layui-icon layui-icon-component',
        'url' => 'shop/goods/index',
        'params' => '',
        'target' => '_self',
        'sort' => '3',
        'status' => '1',
    ], ['id' => '43',
        'pid' => '48',
        'title' => '订单记录管理',
        'node' => '',
        'icon' => 'layui-icon layui-icon-template-1',
        'url' => 'shop/order/index',
        'params' => '',
        'target' => '_self',
        'sort' => '2',
        'status' => '1',
    ], ['id' => '44',
        'pid' => '48',
        'title' => '商品分类管理',
        'node' => '',
        'icon' => 'layui-icon layui-icon-app',
        'url' => 'shop/cate/index',
        'params' => '',
        'target' => '_self',
        'sort' => '5',
        'status' => '1',
    ], ['id' => '45',
        'pid' => '47',
        'title' => '商城配置',
        'node' => '',
        'icon' => 'layui-icon layui-icon-set',
        'url' => 'shop/config/index',
        'params' => '',
        'target' => '_self',
        'sort' => '5',
        'status' => '1',
    ], ['id' => '47',
        'pid' => '13',
        'title' => '商城配置',
        'node' => '',
        'icon' => '',
        'url' => '#',
        'params' => '',
        'target' => '_self',
        'sort' => '20',
        'status' => '1',
    ], ['id' => '48',
        'pid' => '13',
        'title' => '数据管理',
        'node' => '',
        'icon' => '',
        'url' => '#',
        'params' => '',
        'target' => '_self',
        'sort' => '10',
        'status' => '1',
    ], ['id' => '50',
        'pid' => '47',
        'title' => '快递公司管理',
        'node' => '',
        'icon' => 'layui-icon layui-icon-form',
        'url' => 'shop/express/index',
        'params' => '',
        'target' => '_self',
        'sort' => '3',
        'status' => '1',
    ], ['id' => '52',
        'pid' => '47',
        'title' => '轮播图管理',
        'node' => '',
        'icon' => 'fa fa-image',
        'url' => 'shop/banner/index',
        'params' => '',
        'target' => '_self',
        'sort' => '1',
        'status' => '1',
    ], ['id' => '57',
        'pid' => '48',
        'title' => '商品规格管理',
        'node' => '',
        'icon' => 'layui-icon layui-icon-upload-drag',
        'url' => 'shop/goods_spec/index',
        'params' => '',
        'target' => '_self',
        'sort' => '0',
        'status' => '1',
    ], ['id' => '58',
        'pid' => '48',
        'title' => '出入库记录',
        'node' => '',
        'icon' => 'layui-icon layui-icon-form',
        'url' => 'shop/stock/index',
        'params' => '',
        'target' => '_self',
        'sort' => '0',
        'status' => '1',
    ], ['id' => '62',
        'pid' => '48',
        'title' => '商品标签管理',
        'node' => '',
        'icon' => 'layui-icon layui-icon-fonts-strong',
        'url' => 'shop/tags/index',
        'params' => '',
        'target' => '_self',
        'sort' => '4',
        'status' => '1',
    ], ['id' => '63',
        'pid' => '47',
        'title' => '自提地址管理',
        'node' => '',
        'icon' => 'fa fa-handshake-o',
        'url' => 'shop/service_address/index',
        'params' => '',
        'target' => '_self',
        'sort' => '0',
        'status' => '1',
    ], ['id' => '64',
        'pid' => '48',
        'title' => '售后订单管理',
        'node' => '',
        'icon' => 'fa fa-asl-interpreting',
        'url' => 'shop/order_refund/index',
        'params' => '',
        'target' => '_self',
        'sort' => '1',
        'status' => '1',
    ], ['id' => '65',
        'pid' => '48',
        'title' => '提现记录',
        'node' => '',
        'icon' => 'layui-icon layui-icon-dollar',
        'url' => 'shop/withdrawal/index',
        'params' => '',
        'target' => '_self',
        'sort' => '0',
        'status' => '1',
    ], ['id' => '67',
        'pid' => '13',
        'title' => '活动管理',
        'node' => '',
        'icon' => '',
        'url' => '#',
        'params' => '',
        'target' => '_self',
        'sort' => '9',
        'status' => '1',
    ]
        , ['id' => '68',
            'pid' => '67',
            'title' => '秒杀管理',
            'node' => '',
            'icon' => 'fa fa-black-tie',
            'url' => 'shop/seckill_activity/index',
            'params' => '',
            'target' => '_self',
            'sort' => '10',
            'status' => '1',
        ]
        , ['id' => '69',
            'pid' => '67',
            'title' => '拼团管理',
            'node' => '',
            'icon' => 'fa fa-asl-interpreting',
            'url' => 'shop/spell_good/index',
            'params' => '',
            'target' => '_self',
            'sort' => '9',
            'status' => '1',
        ]
    ];

    public function run()
    {
        $this->table('system_menu')->insert($this->datas)->save();

    }
}